# Gnuplot scipt file for plotting data in file "normal_bonanza.dat" and advanced_bonanza_total.dat
# This file is named normal_bonanza.p

set terminal png

unset log
#set logscale xy
#unset log y2

unset label

set xtic auto
set ytic auto

set autoscale
#set xrange [0:20]
#set yrange [0:8.00]

set xlabel "# of processors"
set ylabel "time(nsecs)"

set boxwidth 1 relative
set style data histograms

set style histogram cluster

set style fill pattern 3

set output "a_Vs_n_realtime_256.png"

plot 'advanced_bonanza_total.dat' using 2: xtic(1) title "adv-implementation: total-time",\
      'naive_bonanza.dat' using 2: xtic(1) title "naive-implementation: total-time"

set output "a_Vs_n_realtime_512.png"

plot 'advanced_bonanza_total.dat' using 3: xtic(1) title "adv-implementation: total-time",\
      'naive_bonanza.dat' using 3: xtic(1) title "naive-implementation: total-time"

set output "a_Vs_n_realtime_768.png"

plot 'advanced_bonanza_total.dat' using 4: xtic(1) title "adv-implementation: total-time",\
      'naive_bonanza.dat' using 4: xtic(1) title "naive-implementation: total-time"

set output "a_Vs_n_realtime_1024.png"

plot 'advanced_bonanza_total.dat' using 5: xtic(1) title "adv-implementation: total-time",\
      'naive_bonanza.dat' using 5: xtic(1) title "naive-implementation: total-time"

#plot newhistogram "set c" at 12, 'advanced_bonanza_mult.dat' using 2 with boxes title "test c", \
#newhistogram "set d", 'advanced_bonanza_tran.dat' using 2 with boxes title "test d"
